import {lazy} from 'react'
let router = [
    {
        path: "/login",
        component: lazy(()=>import('@/views/Login')),
        redirect: false,// 默认打开登录页
        exact: true //是否为严格匹配
    },
    {
        path: '/',
        component: lazy(()=>import('@/views/MyView')),
        exact: false,
        routes: [  /** 嵌套路由 */
            {
                path: '/home',
                component: lazy(()=>import('@/pages/Home')),
                // redirect: true,// 默认打开登录页
                exact: true
            },
            {
                path: '/Data_preprocessing',
                component: lazy(()=>import('@/pages/Data_preprocessing')),
                exact: false
            },
            {
                path: '/Species_annotation',
                component: lazy(()=>import('@/pages/Species_annotation')),
                exact: false
            },
            {
                path: '/test',
                component: lazy(()=>import('@/pages/Species_annotation/test')),
            },
            {
                path: '/identification',
                component: lazy(()=>import('@/pages/Species_annotation/Species_composition/identification')),
                exact: false
            },
            {
                path: '/Krona',
                component: lazy(()=>import('@/pages/Species_annotation/Species_composition/Krona')),
                exact: false
            },
            {
                path: '/Sankey',
                component:lazy(()=>import('@/pages/Species_annotation/Species_composition/Sankey')),
                exact: false
            },
            {
                path: '/Tree',
                component:lazy(()=>import('@/pages/Species_annotation/Species_composition/Tree')),
                exact: false
            },
            {
                path: '/kraken',
                component: lazy(()=>import('@/pages/Species_annotation/Kraken')),
                exact: false
            },
            {
                path: '/plot',
                component: lazy(()=>import('@/pages/Species_annotation/Kraken/plot')),
                exact: false
            },
            {
                path: '/alpha_diversity',
                component: lazy(()=>import('@/pages/Species_Diversity/alpha_diversity')),
                exact: false
            },
            {
                path: '/alpha_plot',
                component: lazy(()=>import('@/pages/Species_Diversity/alpha_plot')),
                exact: false
            },
            {
                path:'/beta_diversity',
                component: lazy(()=>import('@/pages/Species_Diversity/beta_diversity')),
                exact: false
            },
            {
                path:'/BC_plots',
                component: lazy(()=>import('@/pages/Species_Diversity/BC_plots')),
                exact: false
            },
            {
                path:'/functional_annotation',
                component: lazy(()=>import('@/pages/functional_annotation')),
                exact: false
            },
            {
                path: '/kraken2Index',
                component: lazy(()=>import('@/pages/Echarts/kraken2Index')),
                exact: false
            },
            {
                path: '/Test',
                component: lazy(()=>import('@/pages/Echarts/Test')),
                exact: false
            },
            {
                path: '/LineChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/LineChart')),
                exact: false
            },
            {
                path: '/BasiceChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/BasiceChart')),
                exact: false
            },
            {
                path: '/PieChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/PieChart')),
                exact: false
            },
            {
                path: '/BarChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/BarChart')),
                exact: false
            },
            {
                path: '/ScatterChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/ScatterChart')),
                exact: false
            },
            {
                path: '/BoxplotChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/BoxplotChart')),
                exact: false
            },
            {
                path: '/AreaChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/AreaChart')),
                exact: false
            },
            {
                path: '/BubbleChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/BubbleChart')),
                exact: false
            },
            {
                path: '/Datatest',
                component: lazy(()=>import('@/pages/Echarts/Datatest')),
                exact: false
            },
            {
                path: '/DataTable',
                component: lazy(()=>import('@/pages/Echarts/DataTable')),
                exact: false
            },
            {
                path: '/TreeChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/TreeChart')),
                exact: false
            },
            {
                path: '/SunburstChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/SunburstChart')),
                exact: false
            },
            {
                path: '/bar_stack',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/bar_stack')),
                exact: false
            },
            {
                path: '/SEChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/SEChart')),
                exact: false
            },
            {
                path: '/LRChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/LRChart')),
                exact: false
            },
            {
                path: '/ERChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/ERChart')),
                exact: false
            },
            {
                path: '/PRChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/PRChart')),
                exact: false
            },
            {
                path: '/NightingaleChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/NightingaleChart')),
                exact: false
            },
            {
                path: '/ClusteringChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/ClusteringChart')),
                exact: false
            },
            {
                path: '/DataScatter',
                component: lazy(()=>import('@/pages/Echarts/DataScatter')),
                exact: false
            },
            {
                path: '/SankeyChart',
                component: lazy(()=>import('@/pages/Echarts/BasiceChart/SankeyChart')),
                exact: false
            },
            {
                path: '/DataHeatmap',
                component: lazy(()=>import('@/pages/Echarts/DataHeatmap')),
                exact: false
            },
            {
                path: '/DataRelation',
                component: lazy(()=>import('@/pages/Echarts/DataRelation')),
                exact: false
            },
            {
                path: '/jbrowse',
                component: lazy(()=>import('@/pages/JBrowse')),
                exact: false
            },
            {
                path: '/specise',
                component: lazy(()=>import('@/pages/Specise')),
                exact: false
            },
            {
                path: '/redirect',
                component: lazy(()=>import('@/pages/Redirect')),
                exact: false
            },
            {
                path: '*',
                component: lazy(()=>import('@/compontens/MyNotFound')),
                meta: {
                    title: '404'
                }
            },
        ]
    },
];

export default router;